import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from './user.entity';
import { UserService } from './user.service';
import { UserSys } from './userSys.entity';
import { RoleModule } from 'src/role/role.module';
import { UserController } from './user.controller';
import { DeptModule } from 'src/dept/dept.module';
import { DingtalkModule } from 'src/dingtalk/dingtalk.module';

@Module({
    imports: [
        TypeOrmModule.forFeature([
            User,
            UserSys,
        ]),
        RoleModule,
        DeptModule,
        DingtalkModule
    ],
    controllers: [UserController],
    providers: [
        UserService
    ],
    exports: [
        UserService
    ]
})
export class UserModule { }